<!--
@author liang.wang@footmarktech.com
@version 1.1.0
@date 2009/08/18
-->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/js/prompt/skin/dmm-green/ymPrompt.css'/>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<s:url value='/js/jquery/jquery-1.3.2.min.js'/>"></script>
<script type="text/javascript" src="<s:url value='/js/prompt/ymPrompt.js'/>"></script>
<script type="text/javascript" src="<s:url value='/js/prompt/jquery_ymPrompt.js'/>"></script>
<script type="text/javascript" src="<s:url value='/js/DatePicker/DatePicker.js'/>"></script>
<script type="text/javascript">
	function toggleContent(index){
		var show = $("#show"+index)[0];
		if(show.innerHTML == "显示公告内容&gt;&gt;&gt;"){
			show.innerHTML = "隐藏公告内容&lt;&lt;&lt;";
		} else{
			show.innerHTML = "显示公告内容&gt;&gt;&gt;";
		}
		var content = $("#content"+index)[0];
		if(content.style.display == "none"){
			content.style.display = "block";
		} else{
			content.style.display = "none"
		}
	}
</script>
<title>公告列表</title>
</head>
<body>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E2E2E2">
	<tr class="tr1">
	<td colspan="10">最新公告</td>
	</tr>
</table>
<s:iterator value="items" status="stat">
	<div style="margin: 10px auto; padding: 5px; background-color: #eee; font: 12px; border: 1px dotted #ccc; line-height: 15px;">
		<s:property value="title" />&nbsp;&nbsp;&nbsp;&nbsp;<font color="gray">发布:<s:property value="publishUserId" />@<s:property value="publishTime" /></font><br/><br/>
		<a href="javascript:toggleContent(<s:property value='#stat.index' />);"><font color="gray"><span id="show<s:property value='#stat.index' />">显示公告内容&gt;&gt;&gt;</span></font></a>
		<div id="content<s:property value='#stat.index' />" style="display:none;"><s:property value="content" escape="false" /></div>
	</div>
</s:iterator>
</body>
</html>